package com.fortune.dto.in.clientOrder;

import java.math.BigDecimal;
import java.util.List;

import com.fortune.dto.in.cOrder.COrderProductDto;
import io.swagger.annotations.Api;
import org.hibernate.validator.constraints.NotBlank;

import io.swagger.annotations.ApiModelProperty;

/**
 * Created by Administrator on 2018/5/28 0028.
 */
public class DOrderSubmitDto {
	@ApiModelProperty(example = "客户id")
	@NotBlank(message = "客户id不能为空")
	private String clientId;
	@ApiModelProperty(example = "商品总金额")
	private BigDecimal pTotalPrice;
	@ApiModelProperty(example = "押金总金额")
	private BigDecimal dTotalPrice;
	private List<COrderProductDto> products;

	public String getClientId() {
		return clientId;
	}

	public void setClientId(String clientId) {
		this.clientId = clientId;
	}

	public BigDecimal getpTotalPrice() {
		return pTotalPrice;
	}

	public void setpTotalPrice(BigDecimal pTotalPrice) {
		this.pTotalPrice = pTotalPrice;
	}

	public BigDecimal getdTotalPrice() {
		return dTotalPrice;
	}

	public void setdTotalPrice(BigDecimal dTotalPrice) {
		this.dTotalPrice = dTotalPrice;
	}

	public List<COrderProductDto> getProducts() {
		return products;
	}

	public void setProducts(List<COrderProductDto> products) {
		this.products = products;
	}

	@Override
	public String toString() {
		return "DOrderSubmitDto{" +
				"clientId='" + clientId + '\'' +
				", pTotalPrice=" + pTotalPrice +
				", dTotalPrice=" + dTotalPrice +
				", products=" + products +
				'}';
	}
}
